<!DOCTYPE html>
<html lang="zh-CN">
  <head>
  <meta charset="UTF-8">
  <meta 
    name="viewport"
    content="width=device-width, initial-scale=1.0, minimum-scale=1.0">
  <meta 
    http-equiv="X-UA-Compatible" 
    content="ie=edge">
  <meta 
    name="theme-color" 
    content="#fff" 
    id="theme-color">
  <meta 
    name="description" 
    content="Hexo">
  <link 
    rel="icon" 
    href="https://demo.theme-kaze.top/img/Kaze.png">
  <title>ubuntu上安装openresty.md</title>
  
    
      <meta 
        property="og:title" 
        content="ubuntu上安装openresty.md">
    
    
      <meta 
        property="og:url" 
        content="https://laoma.gitee.io/fungloengblog/2020/07/24/ubuntu%E4%B8%8A%E5%AE%89%E8%A3%85openresty/index.html">
    
    
      <meta 
        property="og:img" 
        content="https://demo.theme-kaze.top/img/Kaze.png">
    
    
    
      <meta 
        property="og:type" 
        content="article">
      <meta 
        property="og:article:published_time" 
        content="2020-07-24">
      <meta 
        property="og:article:modified_time" 
        content="2021-12-21">
      <meta 
        property="og:article:author" 
        content="IAMFUNGLOENG">
      
        
          <meta 
            property="og:article:tag" 
            content="ubuntu">
        
          <meta 
            property="og:article:tag" 
            content="openresty">
        
      
    
  
  <script>
    function loadScript(url, cb) {
      var script = document.createElement('script');
      script.src = url;
      if (cb) script.onload = cb;
      script.async = true;
      document.body.appendChild(script);
    }
    function loadCSS(href, data, attr) {
      var sheet = document.createElement('link');
      sheet.ref = 'stylesheet';
      sheet.href = href;
      sheet.dataset[data] = attr;
      document.head.appendChild(sheet);
    }
    function changeCSS(cssFile, data, attr) {
      var oldlink = document.querySelector(data);
      var newlink = document.createElement("link");
      newlink.setAttribute("rel", "stylesheet");
      newlink.setAttribute("href", cssFile);
      newlink.dataset.prism = attr;
      document.head.replaceChild(newlink, oldlink);
    }
  </script>
  
    
  
  <script>
    // control reverse button
    var reverseDarkList = {
      dark: 'light',
      light: 'dark'
    };
    var themeColor = {
      dark: '#1c1c1e',
      light: '#fff'
    }
    // get the data of css prefers-color-scheme
    var getCssMediaQuery = function() {
      return window.matchMedia('(prefers-color-scheme: dark)').matches ? 'dark' : 'light';
    };
    // reverse current darkmode setting function
    var reverseDarkModeSetting = function() {
      var setting = localStorage.getItem('user-color-scheme');
      if(reverseDarkList[setting]) {
        setting = reverseDarkList[setting];
      } else if(setting === null) {
        setting = reverseDarkList[getCssMediaQuery()];
      } else {
        return;
      }
      localStorage.setItem('user-color-scheme', setting);
      return setting;
    };
    // apply current darkmode setting
  </script>
  
    <script>
      var setDarkmode = function(mode) {
      var setting = mode || localStorage.getItem('user-color-scheme');
      if(setting === getCssMediaQuery()) {
        document.documentElement.removeAttribute('data-user-color-scheme');
        localStorage.removeItem('user-color-scheme');
        document.getElementById('theme-color').content = themeColor[setting];
        document.getElementById('theme-color').dataset.mode = setting;
      } else if(reverseDarkList[setting]) {
        document.documentElement.setAttribute('data-user-color-scheme', setting);
        document.getElementById('theme-color').content = themeColor[setting];
        document.getElementById('theme-color').dataset.mode = setting;
      } else {
        document.documentElement.removeAttribute('data-user-color-scheme');
        localStorage.removeItem('user-color-scheme');
        document.getElementById('theme-color').content = themeColor[getCssMediaQuery()];
        document.getElementById('theme-color').dataset.mode = getCssMediaQuery();
      }
    };
    setDarkmode();
    </script>
  
  
  <link rel="preload" href="//at.alicdn.com/t/font_1946621_i1kgafibvw.css" as="style" >
  <link rel="preload" href="//at.alicdn.com/t/font_1952792_89b4ac4k4up.css" as="style" >
  
  
    <link rel="preload" href="/fungloengblog/js/lib/lightbox/baguetteBox.min.js" as="script">
    <link rel="preload" href="/fungloengblog/js/lib/lightbox/baguetteBox.min.css" as="style" >
  
  
    <link rel="preload" href="/fungloengblog/js/lib/lozad.min.js" as="script">
  
  
  
  
  
  
  
  <link rel="stylesheet" href="/fungloengblog/css/main.css">
  
  <link rel="stylesheet" href="//at.alicdn.com/t/font_1946621_i1kgafibvw.css">
  
  <link rel="stylesheet" href="//at.alicdn.com/t/font_1952792_89b4ac4k4up.css">
  
    <link rel="stylesheet" href="/fungloengblog/js/lib/lightbox/baguetteBox.min.css">
  
<meta name="generator" content="Hexo 5.4.0"></head>

  <body>
    <div class="wrapper">
       
      <nav class="navbar">
  <div class="navbar-logo">
    <span class="navbar-logo-main">
      
        <img 
          class="navbar-logo-img"
          width="32"
          height="32"
          src="https://demo.theme-kaze.top/img/Kaze.png" 
          alt="blog logo">
      
      <span class="navbar-logo-dsc">FUNGLOENG</span>
    </span>
  </div>
  <div class="navbar-menu">
    
      <a 
        href="/fungloengblog/" 
        class="navbar-menu-item">
        
          首页
        
      </a>
    
      <a 
        href="/fungloengblog/archives" 
        class="navbar-menu-item">
        
          归档
        
      </a>
    
      <a 
        href="/fungloengblog/tags" 
        class="navbar-menu-item">
        
          标签
        
      </a>
    
      <a 
        href="/fungloengblog/categories" 
        class="navbar-menu-item">
        
          分类
        
      </a>
    
      <a 
        href="/fungloengblog/about" 
        class="navbar-menu-item">
        
          关于
        
      </a>
    
      <a 
        href="/fungloengblog/links" 
        class="navbar-menu-item">
        
          友链
        
      </a>
    
    <a 
      class="navbar-menu-item darknavbar" 
      id="dark">
      <i class="iconfont icon-weather"></i>
    </a>
    <a 
      class="navbar-menu-item searchnavbar" 
      id="search">
      <i 
        class="iconfont icon-search" 
        style="font-size: 1.2rem; font-weight: 400;">
      </i>
    </a>
  </div>
</nav> 
      
      <div 
        id="local-search" 
        style="display: none">
        <input
          class="navbar-menu-item"
          id="search-input"
          placeholder="请输入搜索内容..." />
        <div id="search-content"></div>
      </div>
      
      <div class="section-wrap">
        <div class="container">
          <div class="columns">
            <main class="main-column">
<article class="card card-content">
  <header>
    <h1 class="post-title">
      ubuntu上安装openresty.md
    </h1>
  </header>
  <div class="post-meta post-show-meta">
    <time datetime="2020-07-24T14:05:48.000Z">
      <i 
        class="iconfont icon-calendar" 
        style="margin-right: 2px;">
      </i>
      <span>2020-07-24</span>
    </time>
    
    
      <span class="dot"></span>
      <span>832 字</span>
    
  </div>
  
    <div 
      class="post-meta post-show-meta" 
      style="margin-top: -10px;">
      <div style="display: flex; align-items: center;">
        <i 
          class="iconfont icon-biaoqian" 
          style="margin-right: 2px; font-size: 1.15rem;">
        </i>
        
          
          <a 
            href="/fungloengblog/tags/ubuntu/" 
            class="post-meta-link">
            ubuntu
          </a>
        
          
            <span class="dot"></span>
          
          <a 
            href="/fungloengblog/tags/openresty/" 
            class="post-meta-link">
            openresty
          </a>
        
      </div>
    </div>
  
  </header>
  <div 
    id="section" 
    class="post-content">
    <p>安装openresty命令如下：</p>
<pre class="highlight"><span class="line"><span class="meta">#</span><span class="bash">导入我们的 GPG 密钥：</span></span><br><span class="line">wget -qO - https://openresty.org/package/pubkey.gpg | sudo apt-key add -</span><br><span class="line"><span class="meta"></span></span><br><span class="line"><span class="meta">#</span><span class="bash"> 安装 add-apt-repository 命令</span></span><br><span class="line"><span class="meta">#</span><span class="bash"> （之后你可以删除这个包以及对应的关联包）</span></span><br><span class="line">sudo apt-get -y install software-properties-common</span><br><span class="line"><span class="meta"></span></span><br><span class="line"><span class="meta">#</span><span class="bash"> 添加我们官方 official APT 仓库：</span></span><br><span class="line">sudo add-apt-repository -y &quot;deb http://openresty.org/package/ubuntu $(lsb_release -sc) main&quot;</span><br><span class="line"><span class="meta"></span></span><br><span class="line"><span class="meta">#</span><span class="bash"> 更新 APT 索引：</span></span><br><span class="line">sudo apt-get update</span><br><span class="line"><span class="meta"></span></span><br><span class="line"><span class="meta">#</span><span class="bash">然后就可以像下面这样安装软件包，比如 openresty：</span></span><br><span class="line">sudo apt-get install openresty</span><br><span class="line"><span class="meta"></span></span><br><span class="line"><span class="meta">#</span><span class="bash">启动openresty</span></span><br><span class="line">sudo /usr/local/openresty/nginx/sbin/nginx -c /usr/local/openresty/nginx/conf/nginx.conf</span><br><span class="line"><span class="meta"></span></span><br><span class="line"><span class="meta">#</span><span class="bash"><span class="comment">#可以通过下面的命令来查看nginx是否已经启动</span></span></span><br><span class="line">ps -ef|grep nginx</span><br></pre>

<p>访问地址：</p>
<pre class="highlight"><span class="line">## ip地址, eth0:</span><br><span class="line">ifconfig</span><br><span class="line"></span><br></pre>



<p>设置nginx开机启动：</p>
<ol>
<li><p>先安装sysv-rc-conf服务，在安装这个时候，报以下错误：</p>
<p><img src="C:\Users\laoma\AppData\Roaming\Typora\typora-user-images\image-20200811205929614.png" alt="image-20200811205929614" srcset="data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20300%20300'%3E%3C/svg%3E" data-src="C:\Users\laoma\AppData\Roaming\Typora\typora-user-images\image-20200811205929614.png" class="lozad post-image"></p>
<p>这时候需要在Ubuntu的源中增加源</p>
<pre class="highlight"><span class="line"><span class="comment">#sudo vi /etc/apt/sources.list</span></span><br><span class="line"><span class="attr">deb</span> <span class="string">http://archive.ubuntu.com/ubuntu/ trusty main universe restricted multiverse</span></span><br></pre>

<p>源修改好后，执行下面的命令:</p>
<pre class="highlight"><span class="line">sudo apt<span class="literal">-get</span> update</span><br></pre></li>
<li><p>安装sysv-rc-conf服务</p>
<p>我们自己编译安装的NGINX在/etc/init.d/下并没有管理脚本，所以我们现在还无法为NGINX设置自启动项，我们得先为NGINX在/etc/init.d/下创建一个启动脚本。</p>
<pre class="highlight"><span class="line">sudo apt install sysv<span class="literal">-rc</span><span class="literal">-conf</span></span><br></pre></li>
<li><p>设置开机启动</p>
<pre class="highlight"><span class="line">sudo vi /etc/init.d/nginx</span><br></pre>

<p>内容如下：</p>
<pre class="highlight"><span class="line">#! /bin/sh</span><br><span class="line"># chkconfig: 2345 55 25</span><br><span class="line"># Description: Startup script for nginx webserver on Debian. Place in /etc/init.d and</span><br><span class="line"># run &#x27;update-rc.d -f nginx defaults&#x27;, or use the appropriate command on your</span><br><span class="line"># distro. For CentOS/Redhat run: &#x27;chkconfig --add nginx&#x27;</span><br><span class="line"></span><br><span class="line">### BEGIN INIT INFO</span><br><span class="line"># Provides:          nginx</span><br><span class="line"># Required-Start:    $all</span><br><span class="line"># Required-Stop:     $all</span><br><span class="line"># Default-Start:     2 3 4 5</span><br><span class="line"># Default-Stop:      0 1 6</span><br><span class="line"># Short-Description: starts the nginx web server</span><br><span class="line"># Description:       starts nginx using start-stop-daemon</span><br><span class="line">### END INIT INFO</span><br><span class="line"></span><br><span class="line"># Author:   licess</span><br><span class="line"># website:  http://lnmp.org</span><br><span class="line"></span><br><span class="line">PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin</span><br><span class="line">NAME=nginx</span><br><span class="line">NGINX_BIN=/usr/local/openresty/nginx/sbin/$NAME</span><br><span class="line">CONFIGFILE=/usr/local/openresty/nginx/conf/$NAME.conf</span><br><span class="line">PIDFILE=/usr/local/openresty/nginx/logs/$NAME.pid</span><br><span class="line"></span><br><span class="line">case &quot;$1&quot; in</span><br><span class="line">    start)</span><br><span class="line">        echo -n &quot;Starting $NAME... &quot;</span><br><span class="line"></span><br><span class="line">        if netstat -tnpl | grep -q nginx;then</span><br><span class="line">            echo &quot;$NAME (pid `pidof $NAME`) already running.&quot;</span><br><span class="line">            exit 1</span><br><span class="line">        fi</span><br><span class="line"></span><br><span class="line">        $NGINX_BIN -c $CONFIGFILE</span><br><span class="line"></span><br><span class="line">        if [ &quot;$?&quot; != 0 ] ; then</span><br><span class="line">            echo &quot; failed&quot;</span><br><span class="line">            exit 1</span><br><span class="line">        else</span><br><span class="line">            echo &quot; done&quot;</span><br><span class="line">        fi</span><br><span class="line">        ;;</span><br><span class="line"></span><br><span class="line">    stop)</span><br><span class="line">        echo -n &quot;Stoping $NAME... &quot;</span><br><span class="line"></span><br><span class="line">        if ! netstat -tnpl | grep -q nginx; then</span><br><span class="line">            echo &quot;$NAME is not running.&quot;</span><br><span class="line">            exit 1</span><br><span class="line">        fi</span><br><span class="line"></span><br><span class="line">        $NGINX_BIN -s stop</span><br><span class="line"></span><br><span class="line">        if [ &quot;$?&quot; != 0 ] ; then</span><br><span class="line">            echo &quot; failed. Use force-quit&quot;</span><br><span class="line">            exit 1</span><br><span class="line">        else</span><br><span class="line">            echo &quot; done&quot;</span><br><span class="line">        fi</span><br><span class="line">        ;;</span><br><span class="line"></span><br><span class="line">    status)</span><br><span class="line">        if netstat -tnpl | grep -q nginx; then</span><br><span class="line">            PID=`pidof nginx`</span><br><span class="line">            echo &quot;$NAME (pid $PID) is running...&quot;</span><br><span class="line">        else</span><br><span class="line">            echo &quot;$NAME is stopped&quot;</span><br><span class="line">            exit 0</span><br><span class="line">        fi</span><br><span class="line">        ;;</span><br><span class="line"></span><br><span class="line">    force-quit)</span><br><span class="line">        echo -n &quot;Terminating $NAME... &quot;</span><br><span class="line"></span><br><span class="line">        if ! netstat -tnpl | grep -q nginx; then</span><br><span class="line">            echo &quot;$NAME is not running.&quot;</span><br><span class="line">            exit 1</span><br><span class="line">        fi</span><br><span class="line"></span><br><span class="line">        kill `pidof $NAME`</span><br><span class="line"></span><br><span class="line">        if [ &quot;$?&quot; != 0 ] ; then</span><br><span class="line">            echo &quot; failed&quot;</span><br><span class="line">            exit 1</span><br><span class="line">        else</span><br><span class="line">            echo &quot; done&quot;</span><br><span class="line">        fi</span><br><span class="line">        ;;</span><br><span class="line"></span><br><span class="line">    restart)</span><br><span class="line">        $0 stop</span><br><span class="line">        sleep 1</span><br><span class="line">        $0 start</span><br><span class="line">        ;;</span><br><span class="line"></span><br><span class="line">    reload)</span><br><span class="line">        echo -n &quot;Reload service $NAME... &quot;</span><br><span class="line"></span><br><span class="line">        if netstat -tnpl | grep -q nginx; then</span><br><span class="line">            $NGINX_BIN -s reload</span><br><span class="line">            echo &quot; done&quot;</span><br><span class="line">        else</span><br><span class="line">            echo &quot;$NAME is not running, can&#x27;t reload.&quot;</span><br><span class="line">            exit 1</span><br><span class="line">        fi</span><br><span class="line">        ;;</span><br><span class="line"></span><br><span class="line">    configtest)</span><br><span class="line">        echo -n &quot;Test $NAME configure files... &quot;</span><br><span class="line"></span><br><span class="line">        $NGINX_BIN -t</span><br><span class="line">        ;;</span><br><span class="line"></span><br><span class="line">    *)</span><br><span class="line">        echo &quot;Usage: $0 &#123;start|stop|force-quit|restart|reload|status|configtest&#125;&quot;</span><br><span class="line">        exit 1</span><br><span class="line">        ;;</span><br><span class="line"></span><br><span class="line">esac</span><br></pre>

<p>保存成功后，给这个文件授权:</p>
<pre class="highlight"><span class="line">chmod +x /etc/init.d/nginx</span><br></pre>

<p>接下来我们可以看看这个脚本能否正确执行:</p>
<pre class="highlight"><span class="line">sudo /etc/init.d/nginx restart <span class="comment">#这个管理脚本支持的命令有start|stop|force-quit|restart|reload|status|configtest</span></span><br></pre>

<p>如果没有错误能正确执行，那我们可以开始把他加入启动项了：</p>
<pre class="highlight"><span class="line">sudo sysv<span class="literal">-rc</span><span class="literal">-conf</span> -<span class="literal">-list</span> <span class="comment">#我们先查看一下list中有没有我们刚刚加进去的这个nginx管理脚本</span></span><br><span class="line">sudo sysv<span class="literal">-rc</span><span class="literal">-conf</span> nginx on <span class="comment">#然后用这个命令添加开机自启动</span></span><br></pre></li>
</ol>

  </div>
  <div>
    
      <div 
        class="post-note note-warning copyright" 
        style="margin-top: 42px">
        <p>
          <span style="font-weight: bold;">作者：</span><a 
            target="_blank" 
            rel="nofollow noopener noreferrer" 
            href="/fungloengblog/about">
            IAMFUNGLOENG
          </a>
        </p>
        <p>
          <span style="font-weight: bold;">文章链接：</span><a 
            target="_blank" 
            rel="nofollow noopener noreferrer" 
            href="https://laoma.gitee.io/fungloengblog/2020/07/24/ubuntu%E4%B8%8A%E5%AE%89%E8%A3%85openresty/">
            https://laoma.gitee.io/fungloengblog/2020/07/24/ubuntu%E4%B8%8A%E5%AE%89%E8%A3%85openresty/
          </a>
        </p>
        <p><span style="font-weight: bold;">版权声明：</span>本博客所有文章除特别声明外，均采用<a target="_blank" rel="noopener" href="https://creativecommons.org/licenses/by-nc-sa/4.0/deed.zh">CC BY-NC-SA 4.0 协议</a>。转载请注明出处！</p>
      </div>
    
  </div>
</article>
<div class="nav">
  
    <div class="nav-item-prev">
      <a 
        href="/fungloengblog/2020/07/24/win10%E6%9C%AC%E6%9C%BA%E4%B8%8A%E6%9F%A5%E7%9C%8Bwsd2%E4%B8%8A%E7%9A%84ip%E5%9C%B0%E5%9D%80/" 
        class="nav-link">
        <i class="iconfont icon-left nav-prev-icon"></i>
        <div>
          <div class="nav-label">上一篇</div>
          
            <div class="nav-title">win10本机上查看wsd2上的ip地址.md </div>
          
        </div>
      </a>
    </div>
  
  
    <div class="nav-item-next">
      <a 
        href="/fungloengblog/2020/07/24/ubuntu%E4%B8%8A%E5%AE%89%E8%A3%85lua/" 
        class="nav-link">
        <div>
          <div class="nav-label">下一篇</div>
          
            <div class="nav-title">ubuntu上安装lua.md </div>
          
        </div>
        <i class="iconfont icon-right nav-next-icon"></i>
      </a>
    </div>
  
</div>

<div 
  class="card card-content toc-card" 
  id="mobiletoc">
  <div class="toc-header">
  <i 
    class="iconfont icon-menu" 
    style="padding-right: 2px;">
  </i>目录
</div>

</div></main>
            <aside class="left-column">
              
              <div class="card card-author">
                
  <img 
    src="https://demo.theme-kaze.top/img/Kaze.png" 
    class="author-img"
    width="88"
    height="88"
    alt="author avatar">

<p class="author-name">IAMFUNGLOENG</p>
<p class="author-description">designed by fungloeng</p>
<div class="author-message">
  <a 
    class="author-posts-count" 
    href="/fungloengblog/archives">
    <span>27</span>
    <span>文章</span>
  </a>
  <a 
    class="author-categories-count" 
    href="/fungloengblog/categories">
    <span>8</span>
    <span>分类</span>
  </a>
  <a 
    class="author-tags-count" 
    href="/fungloengblog/tags">
    <span>20</span>
    <span>标签</span>
  </a>
</div>

              </div>
               <div class="sticky-tablet">
  
  
    <article class="display-when-two-columns spacer">
      <div class="card card-content toc-card">
        <div class="toc-header">
  <i 
    class="iconfont icon-menu" 
    style="padding-right: 2px;">
  </i>目录
</div>

      </div>
    </article>
  
  
  <article class="card card-content categories-widget">
    <div class="categories-card">
  <div class="categories-header">
    <i 
      class="iconfont icon-fenlei" 
      style="padding-right: 2px;">
    </i>分类
  </div>
  <div class="categories-list">
    
      <a href="/fungloengblog/categories/hexo/">
        <div class="categories-list-item">
          hexo
          <span class="categories-list-item-badge">1</span>
        </div>
      </a>
    
      <a href="/fungloengblog/categories/docker/">
        <div class="categories-list-item">
          docker
          <span class="categories-list-item-badge">2</span>
        </div>
      </a>
    
      <a href="/fungloengblog/categories/docker/fastdfs/">
        <div class="categories-list-item">
          docker/fastdfs
          <span class="categories-list-item-badge">1</span>
        </div>
      </a>
    
      <a href="/fungloengblog/categories/docker/mysql/">
        <div class="categories-list-item">
          docker/mysql
          <span class="categories-list-item-badge">1</span>
        </div>
      </a>
    
      <a href="/fungloengblog/categories/idea/">
        <div class="categories-list-item">
          idea
          <span class="categories-list-item-badge">1</span>
        </div>
      </a>
    
      <a href="/fungloengblog/categories/idea/github/">
        <div class="categories-list-item">
          idea/github
          <span class="categories-list-item-badge">1</span>
        </div>
      </a>
    
      <a href="/fungloengblog/categories/win10/">
        <div class="categories-list-item">
          win10
          <span class="categories-list-item-badge">1</span>
        </div>
      </a>
    
      <a href="/fungloengblog/categories/win10/hyper-v/">
        <div class="categories-list-item">
          win10/hyper-v
          <span class="categories-list-item-badge">1</span>
        </div>
      </a>
    
  </div>
</div>
  </article>
  
  <article class="card card-content tags-widget">
    <div class="tags-card">
  <div class="tags-header">
    <i 
      class="iconfont icon-biaoqian" 
      style="padding-right: 2px;">
    </i>热门标签
  </div>
  <div class="tags-list">
    
      <a 
        href="/fungloengblog/tags/ubuntu/" 
        title="ubuntu">
        <div class="tags-list-item">ubuntu</div>
      </a>
    
      <a 
        href="/fungloengblog/tags/docker/" 
        title="docker">
        <div class="tags-list-item">docker</div>
      </a>
    
      <a 
        href="/fungloengblog/tags/openresty/" 
        title="openresty">
        <div class="tags-list-item">openresty</div>
      </a>
    
      <a 
        href="/fungloengblog/tags/wsl2/" 
        title="wsl2">
        <div class="tags-list-item">wsl2</div>
      </a>
    
      <a 
        href="/fungloengblog/tags/win10/" 
        title="win10">
        <div class="tags-list-item">win10</div>
      </a>
    
      <a 
        href="/fungloengblog/tags/lua/" 
        title="lua">
        <div class="tags-list-item">lua</div>
      </a>
    
      <a 
        href="/fungloengblog/tags/java/" 
        title="java">
        <div class="tags-list-item">java</div>
      </a>
    
      <a 
        href="/fungloengblog/tags/canal/" 
        title="canal">
        <div class="tags-list-item">canal</div>
      </a>
    
      <a 
        href="/fungloengblog/tags/MySQL/" 
        title="MySQL">
        <div class="tags-list-item">MySQL</div>
      </a>
    
      <a 
        href="/fungloengblog/tags/wsl/" 
        title="wsl">
        <div class="tags-list-item">wsl</div>
      </a>
    
      <a 
        href="/fungloengblog/tags/port/" 
        title="port">
        <div class="tags-list-item">port</div>
      </a>
    
      <a 
        href="/fungloengblog/tags/hyper-v/" 
        title="hyper-v">
        <div class="tags-list-item">hyper-v</div>
      </a>
    
      <a 
        href="/fungloengblog/tags/wsl1/" 
        title="wsl1">
        <div class="tags-list-item">wsl1</div>
      </a>
    
      <a 
        href="/fungloengblog/tags/windows10/" 
        title="windows10">
        <div class="tags-list-item">windows10</div>
      </a>
    
      <a 
        href="/fungloengblog/tags/gui/" 
        title="gui">
        <div class="tags-list-item">gui</div>
      </a>
    
      <a 
        href="/fungloengblog/tags/nginx/" 
        title="nginx">
        <div class="tags-list-item">nginx</div>
      </a>
    
  </div>
</div>
  </article>
  
  
</div>
            </aside>
            <aside class="right-column">
              <div class="sticky-widescreen">
  
  
    <article class="card card-content toc-card">
      <div class="toc-header">
  <i 
    class="iconfont icon-menu" 
    style="padding-right: 2px;">
  </i>目录
</div>

    </article>
  
  
  <article class="card card-content">
    <div class="recent-posts-card">
  <div class="recent-posts-header">
    <i 
      class="iconfont icon-wenzhang_huaban" 
      style="padding-right: 2px;">
    </i>最近文章
  </div>
  <div class="recent-posts-list">
    
      <div class="recent-posts-item">
        <div class="recent-posts-item-title">2021-12-21</div>
        <a href="/fungloengblog/2021/12/21/centos7%E6%90%AD%E5%BB%BA%E5%8D%9A%E5%AE%A2/"><div class="recent-posts-item-content">centos7搭建博客</div></a>
      </div>
    
      <div class="recent-posts-item">
        <div class="recent-posts-item-title">2021-12-21</div>
        <a href="/fungloengblog/2021/12/21/centos7%E5%8F%96%E6%B6%88%E8%87%AA%E5%8A%A8%E4%BC%91%E7%9C%A0/"><div class="recent-posts-item-content"></div></a>
      </div>
    
      <div class="recent-posts-item">
        <div class="recent-posts-item-title">2021-12-21</div>
        <a href="/fungloengblog/2021/12/21/centos7%E5%AE%89%E8%A3%85docker/"><div class="recent-posts-item-content"></div></a>
      </div>
    
      <div class="recent-posts-item">
        <div class="recent-posts-item-title">2021-12-21</div>
        <a href="/fungloengblog/2021/12/21/docker%E5%AE%89%E8%A3%85jenkins/"><div class="recent-posts-item-content"></div></a>
      </div>
    
  </div>
</div>
  </article>
  
  
</div>
            </aside>
          </div>
        </div>
      </div>
    </div>
     
    <footer class="footer">
  <div class="footer-container">
    <div>
      <div class="footer-dsc">
        <span>
          Copyright ©
          
            2020 -
          
          2021
        </span>
        &nbsp;
        <a 
          href="/fungloengblog/" 
          class="footer-link">
          FUNGLOENG
        </a>
      </div>
    </div>

    
      <div class="footer-dsc">
        
          Powered by
          <a 
            href="https://hexo.io/" 
            class="footer-link" 
            target="_blank" 
            rel="nofollow noopener noreferrer">
            &nbsp;Hexo
          </a>
        
        
          <span>&nbsp;|&nbsp;</span>
        
        
          Theme -
          <a 
            href="https://github.com/theme-kaze" 
            class="footer-link" 
            target="_blank"
            rel="nofollow noopener noreferrer">
            &nbsp;Kaze
          </a>
        
      </div>
    
    
    
    
      <div class="footer-dsc">
        
          本站总访问量<span id="busuanzi_value_site_pv"></span>次
        
        
          <span>&nbsp;|&nbsp;</span>
        
        
          本站总访客数<span id="busuanzi_value_site_uv"></span>次
        
      </div>
      
    
</footer> 
    
  <a 
    role="button" 
    id="scrollbutton" 
    class="basebutton" 
    aria-label="回到顶部">
    <i class="iconfont icon-arrowleft button-icon"></i>
  </a>

<a 
  role="button" 
  id="menubutton"
  aria-label="menu button"
  class="basebutton">
  <i class="iconfont icon-menu button-icon"></i>
</a>
<a 
  role="button" 
  id="popbutton" 
  class="basebutton" 
  aria-label="控制中心">
  <i class="iconfont icon-expand button-icon"></i>
</a>
<a 
  role="button" 
  id="darkbutton" 
  class="basebutton darkwidget" 
  aria-label="夜色模式">
  <i class="iconfont icon-weather button-icon"></i>
</a>
<a 
  role="button" 
  id="searchbutton" 
  class="basebutton searchwidget" 
  aria-label="搜索">
  <i class="iconfont icon-search button-icon"></i>
</a> 
     
     
     
      <script>
  var addImgLayout = function () {
    var img = document.querySelectorAll('.post-content img')
    var i
    for (i = 0; i < img.length; i++) {
      var wrapper = document.createElement('a')
      wrapper.setAttribute('href', img[i].getAttribute('data-src'))
      wrapper.setAttribute('aria-label', 'illustration')
      wrapper.style.cssText =
        'width: 100%; display: flex; justify-content: center;'
      if (img[i].alt) wrapper.dataset.caption = img[i].alt
      wrapper.dataset.nolink = true
      img[i].before(wrapper)
      wrapper.append(img[i])
      var divWrap = document.createElement('div')
      divWrap.classList.add('gallery')
      wrapper.before(divWrap)
      divWrap.append(wrapper)
    }
    baguetteBox.run('.gallery')
  }
</script>
<script>
  loadScript(
    "/fungloengblog/js/lib/lightbox/baguetteBox.min.js",
    addImgLayout
  )
</script>
 
     
     
    <script src="/fungloengblog/js/main.js"></script> 
    
      <script> 
        loadScript('/fungloengblog/js/lib/busuanzi.min.js') 
      </script>
     
    
      <script>
        var addLazyload = function () {
          var observer = lozad('.lozad', {
            load: function (el) {
              el.srcset = el.getAttribute('data-src')
            },
            loaded: function (el) {
              el.classList.add('loaded')
            },
          })
          observer.observe()
        }
      </script>
      <script>
        loadScript('/fungloengblog/js/lib/lozad.min.js', addLazyload)
      </script>
     
    
    
  </body>
</html>
